package _03LinkedList;

// linked list in Java
class LinkedList {
    Node head;
    class Node {
        int data;
        Node next;
        Node(int d) { data = d; next = null;}
    }
}

class DoublyLinkedList {
    Node head;
    class Node {
        int data;
        Node next;
        Node prev;
        Node(int d) { data = d; next = null; prev = null; }
    }
}



